package com.nxp.nfc_demo.adapters;

import android.os.Build;
import android.webkit.JavascriptInterface;

import com.nxp.nfc_demo.activities.MainActivity;
import com.nxp.nfc_demo.fragments.SpeedTestFragment;
import com.nxp.nfc_demo.fragments.WebViewFragment;

public class AndroidSystemInfo {
        @JavascriptInterface
        public String getOSVersion() { return Build.VERSION.RELEASE; }

        @JavascriptInterface
        public String getDeviceModel() { return Build.MODEL; }

        @JavascriptInterface
        public String getSDKVersion() { return String.valueOf(Build.VERSION.SDK_INT); }

        @JavascriptInterface
        public String sendDataToUart(String data){
           SpeedTestFragment.doSendData(data);
            return "{status:99,data:''}";
        }

    }